<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
  <meta name="format-detection" content="telephone=no" />
  <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  <style>
    /*任务数提示红点*/
    .num-notice {
      position: absolute;
      left: 58px;
      top: 2px;
      display: block;
      width: 20px;
      height: 20px;
      line-height: 20px;
      font-size: 12px;
      color: #fff;
      text-align: center;
      background: #e60012;
      border-radius: 50%;
    }

    /*联系客服按钮样式开始*/
    #YSF-BTN-HOLDER {
      position: fixed;
      max-width: 40px;
      max-height: 40px;
      right: 45px !important;
      bottom: 75px !important;
      cursor: pointer;
      overflow: visible;
      filter: alpha(opacity=100);
      opacity: 1;
      z-index: 9990;
    }
    #YSF-CUSTOM-ENTRY-0 {
      position: relative;
      bottom: 0 !important;
      width: auto;
      background-color: transparent !important;
      box-shadow: none !important;
    }
    #YSF-CUSTOM-ENTRY-0 img {
      max-width: 40px !important;
      height: auto;
    }
    /*联系客服按钮样式结束*/
  </style>
  <title>遇花园</title>
</head>
<body class="bg-gray">
  <!--<img id="kf" onclick="contactCustom()" style="z-index: 98; width: 50px; height: 50px;position: fixed; right: 45px;bottom: 75px;" src="./static/images/kf.png"/>-->
  <div id="app">
      <router-view></router-view>
  </div>
  <!--<script src="https://qiyukf.com/script/2565b957dfe5bc21ce45062c883012fe.js"></script>-->
  <!--<script src="https://unpkg.com/draggabilly@2.1.1/dist/draggabilly.pkgd.min.js"></script>-->
  <script>
    var deviceType = getDeviceType()
    var customUrl = 'http://jpnydebug.22ca.com/wap/custom.html'
    // 启用拖拽
//    if ( deviceType != 'Android' && deviceType != 'iPhone') {
//      var dragDom = document.getElementById('kf')
//      var draggie = new Draggabilly(dragDom)
//      draggie.enable()
//    }

    function contactCustom() {
      console.log('deviceType', deviceType)
      if ( deviceType == 'Android' || deviceType == 'iPhone') {
        if(plus) {
          plus.runtime.openURL(customUrl + '?memberId=7557')
        } else {
          console.log('plus not define')
        }
      } else {
        ysf.open()
      }
    }
    function getDeviceType() {
      var agent = navigator.userAgent
      var device = ''
      if (agent.indexOf('MicroMessenger') !== -1) {
        device = 'weixin'
      } else if (agent.indexOf('Android') !== -1) {
        device = 'Android'
      } else if (agent.indexOf('iPhone') !== -1) {
        device = 'iPhone'
      } else if (agent.indexOf('iPad') !== -1) {
        device = 'iPad'
      } else if (agent.indexOf('Windows') !== -1) {
        device = 'Windows'
      } else {
        device = 'unknown'
      }
      return device
    }
  </script>
</body>
</html>
